<CFPARAM NAME="statusid" DEFAULT="0">


<CFIF isdefined('form.Action')>
	<CFIF form.Action is "INSERT">
		
<CFQUERY name="addstatus" datasource="#application.dsn#">
INSERT INTO status (

)
VALUES
(

)
</CFQUERY>

		<CFLOCATION url="status_list.cfm?msg=item has been added">
	
	<CFELSE>
	
	
		
<CFQUERY DATASOURCE="trac_fu" NAME="updatestatus">
UPDATE status
SET 

WHERE statusid=#statusid#
</CFQUERY>


		<CFLOCATION url="status_list.cfm?msg=item has been updated">
	
	</CFIF>
</CFIF>

<cfquery datasource="#application.dsn#" name="getstatus">
SELECT * FROM status
WHERE statusid=#statusid#  
</cfquery>



<FORM action="status_frmaddedit.cfm" method="post" name="frmstatus">

	<INPUT TYPE="hidden" NAME="statusid" value="<cfoutput>#statusid#</cfoutput>">

<table width="100%" cellspacing="0" cellpadding="0">



	<TR>
		<TD colspan=2>
		<CFIF statusidstatus IS NOT 0>
			<INPUT TYPE="HIDDEN" NAME="Action" VALUE="UPDATE">
			<INPUT TYPE="SUBMIT" VALUE=" UPDATE ">
		<CFELSE>
			<INPUT TYPE="HIDDEN" NAME="Action" VALUE="INSERT">
			<INPUT TYPE="SUBMIT" VALUE=" INSERT ">
		</CFIF>
		</TD>
	</TR>
</TABLE>

</FORM>
